﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "IFamilyEntity.h"
#include "GmFamilyService.h"
#include "IGraphicsElementShape.h"

/// 该类为门窗制作工具设计，主要功能为显示尺寸标注的GRep

namespace gfam
{

    /// \brief  尺寸标注基类
    class GM_FAMILY_SERVICE_EXPORT IFamilyGraphicsElement : public IFamilyEntity
    {
        DEFINE_CAST_DERIVED(gfam::IFamilyGraphicsElement, gfam::IFamilyEntity)
    public:

        static IFamilyGraphicsElement* Create(gcmp::IDocument* pDoc);

        /// \brief 设置GRep
        ///
        /// \return
        virtual void SetGRep(gcmp::OwnerPtr<gcmp::IGraphicsElementShape> opGRep) = 0;
    };
}